home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
PROGRAMR
/
TKERN091.ZIP
/
SRC
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1994-03-06
|
2KB
|
93 lines
#
# This file forms part of "TKERN" - "Troy's Kernel for Windows".
#
# Copyright (C) 1994 Troy Rollo <troy@cbme.unsw.EDU.AU>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
.AUTODEPEND
CC = bcc
GENFLAGS = -DSTRICT -w! -ml -v -c -I..\INCLUDE
CFLAGS = -W $(GENFLAGS)
DLLFLAGS = -WD $(GENFLAGS)
CCMD = $(CC) $(CFLAGS)
DLLCMD = $(CC) $(DLLFLAGS)
.c.obj:
$(DLLCMD) $*.c
default: tkern.lib tklib.lib tkfmangr.exe
install: default
copy tkern.dll c:\windows\system
copy tkfmangr.exe c:\windows\system
# The stuff for the kernel dll first
tkern.lib: tkern.dll
implib tkern.lib tkern.dll
copy tkern.lib ..\lib
tkern.dll: tkern.obj formattr.obj misc.obj io.obj process.obj
tlink /v /s /c /C /Twd @&&!
c0dl $**,tkern,tkern,cwl cl mathwl import,tkern
!
# Then the stuff for tkfmangr
window.obj: window.c
$(CCMD) $*.c
tfile.obj: tfile.c
$(CCMD) $*.c
tdevice.obj: tdevice.c
$(CCMD) $*.c
tkfmangr.obj : tkfmangr.c
$(CCMD) $*.c
tkfmangr.exe: tkfmangr.obj tdevice.obj window.obj tfile.obj
tlink /v /c /C /s /n /Twe @&&!
c0wl.obj $**,tkfmangr.exe,,tkern cwl import
!
# Then tklib.lib, the objs that need to be linked into the apps.
stdio.obj: stdio.c
$(CCMD) $*.c
links.obj: links.c
$(CCMD) $*.c
putenv.obj: putenv.c
$(CCMD) $*.c
tklib.lib: links.obj putenv.obj stdio.obj
del tklib.lib
tlib tklib.lib /C /E +links.obj +putenv.obj +stdio.obj
copy tklib.lib ..\lib